﻿@model OES.ViewModels.AdminBrowseImageViewModel
 
@{
    Layout = null;
}
 
<!DOCTYPE html>
 
<html>
<head>
  <title>BrowseImage</title>
    <script type="text/javascript" src="@Url.Content("~/Scripts/jquery-1.7.1.min.js")"></script>
    <script type="text/javascript">
        $(function () {
            $("a").click(function () {
                window.opener.CKEDITOR.tools.callFunction(@Model.CKEditorFuncNum , $(this).html().trim());
            });
        });
    </script>
</head>
<body>
    <div>
        @if (Model.ImagePaths != null)
        {
            foreach (var vPath in Model.ImagePaths)
                {
                    <div style="float: left; width: 100%; display: block; padding: 10px;">
                        <div>
                            <div>
                                <a href="javascript: return false;">@vPath</a>
                            </div>
                            <div style="display: inline;">
                            @Html.Raw("<img src=\"http://localhost:7442" + vPath + "\" />")
                            </div>
                        </div>
                 
                    </div>
                }
        }
    </div>
</body>
</html>